<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<script type="text/javascript" src="__PUBLIC__/admin/js/jquery-1.7.2.min.js"></script>
	<link href="__PUBLIC__/admin/css/admin.css" rel="stylesheet" type="text/css" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        	<!--Jquery UI插件-->
	<script type="text/javascript" charset="utf-8">
	            var $URL='__URL__';
	</script>
	<link href="__PUBLIC__/js/JqueryUi/css/custom-theme/jquery-ui-1.10.3.custom.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="__PUBLIC__/js/JqueryUi/js/jquery-ui-1.10.3.custom.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/admin/js/admin.js"></script>
	<script type="text/javascript">
		$(function(){
			$('#typelist').change(function(){
				$typeid=$(this).val();
				if($typeid!=''){
					location='__URL__/?a=type&typeid='+$typeid+'&catid='+<{$Think.get.catid}>;
				}else{
					location='__URL__/?a=index&catid='+<{$Think.get.catid}>;
				}
			});
		});
		function dodel(id,title){
			if(confirm('内容：'+title+"，删除后无法恢复，您确定要删除吗？")){
				window.location="__URL__/?a=del&id="+id;
			}
	        	}
	</script>
</head>
<body>
<form action="__URL__/?a=so&catid=<{$Think.get.catid}>" method="post">
	<table border="0" cellpadding="0" cellspacing="0" id="list-top" style="margin-left:20px;">
		<tr>
			<td>选择栏目：<diy:selects name="type" options="typelist" selected="selected" first="全部" id="typelist" /></td>
			<td><button type="button" onclick="javascript:_black('__URL__/add/catid/<{$Think.get.catid}>')">发布内容</button></td> 
			<td><button type="button" onclick="javascript:_black('__ROOT__/Index/page/id/<{$Think.get.typeid}>')">预览</button></td>
			<td style="padding-left:15px;">标题：<input name="title" type="text" value="<{$_GET['title']}>" style="width:100px;"/><button type="submit">搜索</button></td>
		</tr>
	</table>
	<table border="0" cellpadding="0" dellspacinng="0" id="listtext">
		<tr id="listt">
	        		<td class="qx">选择</td>
	        		<td class="his">内容ID</td>
			<td class="nums">排序</td>
			<td class="title">文章标题</td>
			<td class="his">点击量</td>
			<td class="ren">发布者</td>
			<td class="time">发布时间</td>
			<td class="cz">操作管理</td>
		</tr>
		<volist name="list" id="vo">
		<tr>
	        		<td class="qx"><input type="checkbox" class="checkbox" name="checkbox" value="<{$vo.id}>"><label></label></td>
	        		<td class="his"><{$vo.id}></td>
			<td class="nums"><input type="text" name="nums[]" value="<{$vo.nums}>" /></td>
			<td class="title"><a href="<{$vo.url}>" target="_blank"><{$vo.title}></td>
			<td class="his"><{$vo.his}></td>
			<td class="ren"><{$vo.zuozhe.username}></td>
			<td class="time"><{$vo.addtime|date="Y-m-d H:i",###}></td>
			<td class="cz"><a href="javascript:_black('__URL__/?a=edit&id=<{$vo.id}>&catid=<{$Think.get.catid}>');">修改</a> | <a href="javascript:dodel(<{$vo.id}>,'<{$vo.title}>')">删除</a></td>
		</tr>
		</volist>
	</table>
	<table border="0" cellpadding="0" cellspacing="0" id="list-bottom" style="margin-left:20px;">
		<tr>
	        		<td><button type="button">全选</button></td>
	        		<td><button type="button">全不选</button></td>
			<td><button type="button">反选</button></td>
			<td><button type="button">审核</button></td>
			<td><button type="button">待审核</button></td>
			<td><button type="button" id="deletes">删除</button></td>
		</tr>
	</table>
	<table border="0" cellpadding="0" cellspacing="0" id="pages">
		<tr><td><{$page}></td></tr>
	</table>
</form>		
</body>
</html>
